import { _decorator, Component, Label, Node } from 'cc';
import { DialogViewID } from '../../../components/DialogViewID';
import { DialogViewManager } from '../../../managers/DialogViewManager';
import { DialogViewBase } from '../../base/DialogViewBase';
const { ccclass, property } = _decorator;

@ccclass('RankDialogView')
export class RankDialogView extends DialogViewBase {
    protected _dialogViewID:DialogViewID = DialogViewID.rank;
    start() {

    }

    update(deltaTime: number) {
        
    }
    protected init(data?: any): void {
    }
    private click(e,data:string):void{
        switch(data)
        {
            case "close":
                this.close();
            break;

            case "closeBag":
                DialogViewManager.instance.closeDialog(DialogViewID.bag);
            break;
        }
      
    }
}


